﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace AreaOracle
{
    [Table("Areas")]
  public  class SteelArea
    {
        [DatabaseGenerated(DatabaseGeneratedOption.None), Key]
        public  long Id{ get; set; }

        /// <summary>
        /// 省份ID
        /// </summary>
        public long ProvinceId { get; set; }

        /// <summary>
        /// 省份ID Guid
        /// </summary>
        public Guid? ProvinceIdGuid { get; set; }

        /// <summary>
        /// 省份名称
        /// </summary>
        [StringLength(32)]
        public string ProvinceName { get; set; }

        /// <summary>
        /// 城市Id
        /// </summary>
        public long CityId { get; set; }

        /// <summary>
        /// 城市Id Guid
        /// </summary>
        public Guid? CityIdGuid { get; set; }

        /// <summary>
        /// 城市名称
        /// </summary>
        [StringLength(32)]
        public string CityName { get; set; }

        /// <summary>
        /// 区县ID
        /// </summary>
        public long CountyId { get; set; }

        /// <summary>
        /// 区县ID Guid
        /// </summary>
        public Guid? CountyIdGuid { get; set; }

        /// <summary>
        /// 区县名称
        /// </summary>
        [StringLength(32)]
        public string CountyName { get; set; }

        /// <summary>
        /// 标记
        /// </summary>
        [StringLength(16)]
        public string Tag { get; set; }

        /// <summary>
        /// 简码
        /// </summary>
        /// <remarks>
        /// 不允许重复
        /// </remarks>
        [StringLength(16)]
        public string Code { get; set; }

        /// <summary>
        /// 运网Id
        /// </summary>
        [StringLength(8)]
        public string YwId { get; set; }


        /// <summary>
        /// 拼音
        /// </summary>
        [StringLength(50)]
        public string PinYin { get; set; }


        /// <summary>
        /// 简拼
        /// </summary>
        [StringLength(50)]
        public string JP { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public EnumStatus Status { get; set; }
    }
    /// <summary>
    /// 有效/无效
    /// </summary>
    public enum EnumStatus : byte
    {
        [Description("无效")]
        无效 = 0,
        [Description("有效")]
        有效 = 1
    }
}
